package object3.package1;

public class Main {
    public static void main(String[] args) {
        Shape shape1 = new Triangle(10, 5);
        Shape shape2 = new Rectangle(10, 8);
        Shape shape3 = new Circle(10);

        shape1.draw();
        System.out.println("面积：" + shape1.getArea());
        System.out.println(shape1);
        shape2.draw();
        System.out.println("面积：" + shape2.getArea());
        System.out.println(shape2);
        shape3.draw();
        System.out.println("面积：" + shape3.getArea());
        System.out.println(shape3);


    }
}
